package com.wuye.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.wuye.basic.domain.WyCommunity;
import com.wuye.charge.domain.WyCost;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wuye.common.annotation.Excel;
import com.wuye.common.core.domain.BaseEntity;

/**
 * 区域对象 wy_region
 * 
 * @author avalon
 * @date 2024-11-23
 */
@Data
public class WyRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域id */
    @Excel(name = "区域id")
    @TableId(type = IdType.AUTO)
    private Long regionId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String regionName;

    /** 区域价格 */
    @Excel(name = "区域价格")
    private Long costId;

    /** 车位数量 */
    @Excel(name = "车位数量")
    private String regionCarcount;

    /** 小区名称 */
    @Excel(name = "小区名称")
    private Long communityId;

    /** 逻辑删除 0 不删除 1删除 */
    @TableLogic
    private Long del;

    @TableField(exist = false)
    private WyCommunity community;

    @TableField(exist = false)
    private WyCost wyCost;


    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setCostId(Long costId) 
    {
        this.costId = costId;
    }

    public Long getCostId() 
    {
        return costId;
    }
    public void setRegionCarcount(String regionCarcount) 
    {
        this.regionCarcount = regionCarcount;
    }

    public String getRegionCarcount() 
    {
        return regionCarcount;
    }
    public void setcommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getcommunityId() 
    {
        return communityId;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regionId", getRegionId())
            .append("regionName", getRegionName())
            .append("costId", getCostId())
            .append("regionCarcount", getRegionCarcount())
            .append("communityId", getcommunityId())
            .append("remark", getRemark())
            .append("del", getDel())
            .toString();
    }
}
